package a.g;

import a.h.c;
import a.h.dc;
import a.i.mb;
import a.j.g;
import a.j.pg;
import a.j.ze;

import javax.swing.*;
import java.util.MissingResourceException;

public abstract class f
{
  public static final short a = 0;
  public static final short b = 1;
  public static final short c = 2;
  private short e;
  private String f;
  private String g;
  private String i;
  private mb j = new mb();
  private g k;
  private dc l;
  private boolean m;
  protected final e n;
  public static boolean o;
  public static int p;
  
  public f(String paramString1, String paramString2, String paramString3)
  {
    this.f = paramString1;
    this.g = paramString2;
    this.i = paramString3;
    this.n = new e(this);
    this.m = true;
  }
  
  public String a()
  {
    return this.f;
  }
  
  public void a(String paramString)
  {
    this.f = paramString;
  }
  
  public String b()
  {
    return this.g;
  }
  
  public String c()
  {
    return this.i;
  }
  
  protected mb d()
  {
    return this.j;
  }
  
  public void a(g paramg)
  {
    this.k = paramg;
  }
  
  protected g e()
  {
    return this.k;
  }
  
  public void a(d paramd)
  {
    this.n.a(paramd);
  }
  
  public void b(d paramd)
  {
    this.n.b(paramd);
  }
  
  protected ze f()
  {
    return e().fb();
  }
  
  protected pg g()
  {
    int i1 = p;
    ze localze = e().fb();
    if (((i1 != 0) || (localze != null)) && ((i1 != 0) || ((localze instanceof pg)))) {
      return (pg)localze;
    }
    return null;
  }
  
  protected void h()
  {
    int i1 = p;
    ze localze = e().fb();
    if (((i1 != 0) || (localze != null)) && ((i1 != 0) || ((localze instanceof pg)))) {
      ((pg)localze).F();
    }
  }
  
  public dc i()
  {
    int i1 = p;
    if (i1 == 0) {
      if (this.l == null) {
        this.l = j();
      }
    }
    if (i1 == 0) {
      if (this.l != null)
      {
        if (i1 != 0) {
          break label83;
        }
        if (this.l.r() == null) {
          try
          {
            c localc = new c();
            localc.d(getClass().getName());
            this.l.b(localc);
          }
          catch (MissingResourceException localMissingResourceException) {}
        }
      }
    }
    label83:
    return this.l;
  }
  
  protected dc j()
  {
    return null;
  }
  
  public void a(dc paramdc)
  {
    this.l = paramdc;
  }
  
  public void b(g paramg)
  {
    a(paramg, false);
  }
  
  public void c(g paramg)
  {
    a(paramg, true);
  }
  
  private void a(g paramg, boolean paramBoolean)
  {
    int i1 = p;
    a(paramg);
    if (i1 == 0)
    {
      this.e = 0;
      if (paramBoolean)
      {
        if (i1 != 0) {
          break label60;
        }
        localObject1 = a(new c_(q(), SwingUtilities.isEventDispatchThread()));
        ((Thread)localObject1).start();
        if (!o) {
          return;
        }
      }
    }
    label60:
    Object localObject1 = e();
    ((g)localObject1).z();
    try
    {
      if (i1 == 0) {
        if (q()) {
          ((g)localObject1).jb();
        }
      }
      p();
    }
    finally
    {
      ((g)localObject1).A();
    }
  }
  
  protected Thread a(Runnable paramRunnable)
  {
    Thread localThread = new Thread(paramRunnable);
    localThread.setPriority(1);
    return localThread;
  }
  
  public boolean k()
  {
    return false;
  }
  
  public short l()
  {
    return this.e;
  }
  
  protected void a(short paramShort)
  {
    this.e = paramShort;
  }
  
  protected void m() {}
  
  protected abstract void n();
  
  protected void o() {}
  
  protected void p()
  {
    try
    {
      this.n.a();
      m();
      this.n.c();
      n();
      this.n.d();
      try
      {
        o();
      }
      finally
      {
        this.n.b();
      }
    }
    catch (RuntimeException localRuntimeException)
    {
      if (a(localRuntimeException)) {
        throw localRuntimeException;
      }
    }
    catch (Error localError)
    {
      if (a(localError)) {
        throw localError;
      }
    }
    catch (Throwable localThrowable)
    {
      a(localThrowable);
    }
  }
  
  protected boolean a(Throwable paramThrowable)
  {
    this.n.a(paramThrowable);
    if (p == 0) {}
    return !this.n.e();
  }
  
  public boolean q()
  {
    return this.m;
  }
  
  public void a(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }
  
  class c_
    implements Runnable
  {
    private final boolean a;
    private final boolean b;
    private final g c;
    
    public c_(boolean paramBoolean1, boolean paramBoolean2)
    {
      this.a = paramBoolean1;
      this.b = paramBoolean2;
      this.c = f.this.e();
    }
    
    public void run()
    {
      int i = f.p;
      boolean bool = f.o;
      if (i == 0) {
        if (this.a) {
          if (i == 0)
          {
            if (this.b)
            {
              try
              {
                SwingUtilities.invokeAndWait(new f.0(this));
              }
              catch (Exception localException1)
              {
                if (i != 0) {
                  break label80;
                }
              }
              if (!bool) {}
            }
            else
            {
              this.c.z();
            }
          }
          else {
            this.c.jb();
          }
        }
      }
      label145:
      try
      {
        f.this.p();
      }
      finally
      {
        label80:
        if (i == 0)
        {
          if (!this.a) {
            break label145;
          }
          if (i != 0) {}
        }
        else if (this.b)
        {
          try
          {
            SwingUtilities.invokeAndWait(new f.1(this));
          }
          catch (Exception localException2)
          {
            if (!bool) {
              break label145;
            }
          }
        }
        this.c.A();
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.f

 * JD-Core Version:    0.7.0.1

 */